package com.city.servicebase.myexception.exceptionenum;

/**
 * Created with IntelliJ IDEA.
 * User: Cheng
 * Date: 2020/5/21
 * Time: 22:31
 * Description: No Description
 */
public enum  MyExceptionEnumImpl implements IMyExceptionEnum{
    NOT_Exception(20001,"未知异常！"),
    NOT_DELETE_COURSE(20001,"课程删除失败！"),
    PHONE_REPEAT(20001,"改手机号已被注册！"),
    NOT_INFO_REGISTERED(20001,"注册信息不完整，请重新填写！"),
    NOT_DELETE(20001,"请先删除该章节内的小节"),
    EXCEL_NOT_DATA(20001,"该excel文件数据为空！"),
    USER_AND_PASS_NOT(20001,"账号或密码为空，请重新输入！"),
    UPDATE_COURSE_FAILURE(20001,"课程基本信息修改失败！"),
    NOT_USER(20001,"账号不存在，请重新输入或注册账号！"),
    NOT_PASS(20001,"密码错误，请重试！"),
    NOT_DISABLED(20001,"账号封禁中，请规范使用账号，谢谢合作！"),
    CODE_ERROR(20001,"验证码错误，请重试！"),
    COURSE_INFO_FAILURE(20001,"课程信息插入失败！"),
    LOGIN_NOT(20001,"登录失败！");
    private Integer code;
    private String msg;

    MyExceptionEnumImpl(Integer code,String msg){
        this.code=code;
        this.msg=msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
